home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / 4.4bsd / defs < prev    next >
Text File  |  1994-08-01  |  9KB  |  322 lines

  1. #    $Header: /usr/people/sam/fax/port/4.4bsd/RCS/defs,v 1.9 1994/03/29 01:05:47 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on under 4.4BSD
  27. # using gcc 2.3.3 and libg++?.?
  28. #
  29. # TARGET:    4.4bsd
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/sh
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed
  39. #
  40. PORT    = ${DEPTH}/port/4.4bsd
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45.  
  46. C++    = /usr/bin/gcc
  47. CC    = /usr/bin/gcc
  48. NAWK    = /usr/bin/awk
  49. INSTALL    = bash ${PORT}/install.sh
  50. MKDEPEND= ${GENERIC}/mkdepend
  51. AR    = /usr/bin/ar
  52. RANLIB    = /usr/bin/ranlib
  53. SED    = /usr/bin/sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crl
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63. LPTOPSLCOPTS=
  64.  
  65. #
  66. # BSD execs getty to do the work.
  67. #
  68. SYSGETTY=GettyBSD.c++
  69.  
  70. #
  71. # BSDi wants BSD-style UUCP lock support.
  72. #
  73. UUCP_LOCKDIR=/var/spool/uucp
  74. UUCP_LOCKTYPE=1
  75. UUCP_LOCKMODE=0644
  76.  
  77. #
  78. # Location of Adobe Font Metrics for lptops.
  79. #
  80. AFMDIR=/usr/local/libdata/afm
  81.  
  82. #
  83. # PostScript imager for server.  PSPACKAGE is one of:
  84. #
  85. # dps    for Display Postscript
  86. # gs    for Ghostscript
  87. #
  88. # and PSIMAGER is the pathname of the binary executable.
  89. #
  90. PSPACKAGE=gs
  91. PSIMAGER=/usr/local/bin/gs
  92.  
  93. #
  94. # Mail program for sending notification messages.
  95. #
  96. SENDMAIL=/usr/sbin/sendmail
  97.  
  98. #
  99. # Default optimizer and prototype options
  100. #
  101. OPTIMIZER=-g
  102. #PROTOTYPES=-prototypes
  103. CVERSION=-D__ANSI_CPP__
  104. GVERSION=
  105. C++FILE=-x c++
  106.  
  107. # default definitions for programs--overide them as desired
  108. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT} -lutil
  109. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  110. #
  111. # Override this definition to eliminate shared library use.
  112. #
  113. SHDLIBC=-lc
  114.  
  115. #
  116. # Libraries that may vary from machine to machine (especially if
  117. # you use GNU GCC instead of AT&T C++).
  118. #
  119. MACHDEPLIBS=-lg++
  120. #
  121. # You must have v3.0 or newer of the TIFF library.  If
  122. # you already have it installed, or if you have version 3.0
  123. # or newer of InterViews installed (which includes the TIFF
  124. # library), you can point these to those places.  Otherwise,
  125. # you can just use the code provided here.
  126. #
  127. TIFF=    ${DEPTH}/libtiff
  128. LIBTIFF=${TIFF}/libtiff.a
  129. #
  130. # If you already have InterViews 3.0 or newer installed,
  131. # define these to be something like:
  132. #
  133. #IV=    /usr/include
  134. #LIBIV=    /usr/lib/libIV.a
  135. # Otherwise you can just use the subset of classes used by
  136. # the fax software and collected here in a hacked-up library.
  137. #
  138. IV=    ${DEPTH}/iv
  139. LIBIV=    ${IV}/libivhack.a
  140. # random utility functions and classes
  141. UTIL=    ${DEPTH}/util
  142. LIBUTIL=${UTIL}/libfaxutil.a
  143. LIBPORT=${PORT}/libport.a
  144.  
  145. #
  146. # Uid&Gid for installing server stuff.  Note that the server process
  147. # proper (/usr/etc/faxd or similar) must either run setuid root or
  148. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  149. # so that the fax server can participate in the UUCP locking scheme
  150. # and thereby implement tty line sharing (i.e. share the same line
  151. # and modem for both fax and data).
  152. #
  153. FAXUSER=uucp
  154. FAXGROUP=dialer
  155.  
  156. #
  157. # Directories where stuff gets placed:
  158. #
  159. # BIN        client-directed applications
  160. # LIBDATA    client-directed application library data files
  161. # LIBEXEC    client-directed application library executables
  162. # SPOOL        spooling area for servers
  163. # DOC        non-manual documentation
  164. # USRETC    place for servers (faxd & faxd.recv)
  165. #
  166. BIN=    /usr/local/bin
  167. LIBDATA=/usr/local/lib/fax
  168. LIBEXEC=/usr/local/lib/fax
  169. SPOOL=    /var/spool/fax
  170. DOC=    /usr/local/doc/flexfax
  171. USRETC=    /usr/libexec
  172. #
  173. # Manual-related controls:
  174. #
  175. # MAN        head of manual tree
  176. # MANAPP    subdirectory for stuff in BIN
  177. # MANSYS    subdirectory for server & server-related apps
  178. # MANFILES    subdirectory for file format info 
  179. # PAGEDIRT    temp files to remove on clean/clobber
  180. #
  181. MAN    = /usr/local/man
  182. MANAPPS    = man1
  183. MANSYS    = man8
  184. MANFILES= man5
  185.  
  186. MANCAPP    = ${CLIENTAPPS}
  187. MANCFILE= ${CLIENTFILES:.4f=.5f}
  188. MANSAPP    = ${SERVERAPPS:.1m=.8c}
  189. MANSFILE= ${SERVERFILES:.4f=.5f}
  190. PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
  191.  
  192. .SUFFIXES: .1m .4f .5f .8c
  193. .1m.8c:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  194. .4f.5f:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  195.  
  196. # programs used during installation
  197. ECHO=    /bin/echo
  198. GREP=    /usr/bin/grep
  199. RM=    /bin/rm
  200. PWD=    /bin/pwd
  201. CHROOT=    /usr/sbin/chroot
  202.  
  203. #
  204. # Definitions used by common rules.
  205. #
  206. COMMONRULES=${DEPTH}/rules
  207. COMMONTARGS= clobber clean rmtargets depend incdepend
  208.  
  209. #
  210. # C compiler flags are composed of variable (set on the command line),
  211. # local (defined in the makefile), and global (defined in this file)
  212. # parts, in that order.  This ordering is used so that variable or
  213. # locally specified include directories are searched before the globally
  214. # specified ones.
  215. #
  216. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  217.  
  218. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  219. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  220. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  221.  
  222. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  223. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  224. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  225.  
  226. GCOPTS=    ${OPTIMIZER} ${PROTOTYPES}
  227. GCDEFS=
  228. GCINCS=    -I- -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  229. #
  230. # C++ flags are decomposed using the same hierarchy as C flags.
  231. #
  232. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  233.  
  234. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  235. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  236. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  237.  
  238. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  239. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  240. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  241.  
  242. GC++OPTS=${OPTIMIZER}
  243. # NB: search /usr/include first to get POSIX-compliant include files
  244. GC++INCS=${GCINCS} -I${IV} -I/usr/include -I/usr/include/g++
  245. GC++DEFS=-DfxSIGHANDLER=sig_t '-DfxSIGVECHANDLER=(void(*)())'
  246.  
  247. #
  248. # Loader flags, composed of library (-l's) and option parts, with
  249. # the libraries appearing last.  Both of these are divided into variable,
  250. # local, and global parts.  The composition of LDFLAGS is done in the
  251. # other "direction" from CFLAGS so that all the -L's, that are part of
  252. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  253. # Another benefit of segregating the libraries from the remaining of the
  254. # loader options is that the libraries alone can easily be given to
  255. # another program, e.g., lint.
  256. #
  257. # Notes:
  258. #   - If a program should not be linked with the shared version of libc,
  259. #     then its make file should override the setting of SHDLIBC with a
  260. #     line such as "SHDLIBC=".
  261. #
  262. LDFLAGS=${LDOPTS} ${LDLIBS}
  263.  
  264. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  265. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  266.  
  267. GLDOPTS=
  268. GLDLIBS=${SHDLIBC}
  269.  
  270. #
  271. # Convenient command macros that include the flags macros.
  272. #
  273. C++F=    ${C++} ${C++FLAGS}
  274. CCF=    ${CC} ${CFLAGS}
  275.  
  276. #
  277. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  278. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  279. # mkdepend option to this.  The other language's mkdepend variables try to
  280. # include their language's name in the variable names.  Unfortunately, a
  281. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  282. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  283. #
  284. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  285. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  286.  
  287. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  288. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  289. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  290.  
  291. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  292. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  293. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  294.  
  295. #
  296. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  297. # single-source programs using null suffix rules (e.g., .c:}.  This option
  298. # works for both C and C++ make depend.
  299. #
  300. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  301. #
  302. # MKDEPFILE is the name of the dependency database, included by rules.
  303. #
  304. MKDEPFILE=Makedepend
  305. #
  306. # CDEPFILES lists all C or cc-compiled source files that depend on header
  307. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  308. # dependencies computable by ${MKDEPENDC++}.
  309. #
  310. C++DEPFILES=${C++FILES}
  311. CDEPFILES=${CFILES}
  312. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  313.  
  314. #
  315. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  316. #
  317. INCLDIR    =${ROOT}/usr/include
  318.